package com.hubu.game.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 角色信息表
 * </p>
 *
 * @author zjj
 * @since 2023-10-24
 */
@TableName("t_role")
@ApiModel(value = "Role对象", description = "角色信息表")
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("角色ID（5至7位数）")
    @TableId(value = "role_id", type = IdType.AUTO)
    private Integer roleId;

    @ApiModelProperty("角色名")
    private String roleName;

    @ApiModelProperty("当前职业")
    private String currentOccu;

    @ApiModelProperty("角色头像路径")
    private String avatar;

    @ApiModelProperty("VIP级别")
    private Integer vipLevel;

    @ApiModelProperty("转职详情")
    private String occuDetail;

    @ApiModelProperty("转职次数")
    private Integer occuTimes;

    @ApiModelProperty("抗性信息")
    private String resistance;

    @ApiModelProperty("是否可见（1表示可见，0表示不可见）")
    private Boolean isVisible;

    @ApiModelProperty("所属账户（关联到t_user中的user_id）")
    private Integer userId;

    @TableLogic(delval = "1")
    @ApiModelProperty("逻辑删除:0 未删除 1删除")
    private Integer isDeleted=0;

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getCurrentOccu() {
        return currentOccu;
    }

    public void setCurrentOccu(String currentOccu) {
        this.currentOccu = currentOccu;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Integer getVipLevel() {
        return vipLevel;
    }

    public void setVipLevel(Integer vipLevel) {
        this.vipLevel = vipLevel;
    }

    public String getOccuDetail() {
        return occuDetail;
    }

    public void setOccuDetail(String occuDetail) {
        this.occuDetail = occuDetail;
    }

    public Integer getoccuTimes() {
        return occuTimes;
    }

    public void setoccuTimes(Integer occuTimes) {
        this.occuTimes = occuTimes;
    }

    public String getResistance() {
        return resistance;
    }

    public void setResistance(String resistance) {
        this.resistance = resistance;
    }

    public Boolean getIsVisible() {
        return isVisible;
    }

    public void setIsVisible(Boolean isVisible) {
        this.isVisible = isVisible;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "Role{" +
                "roleId=" + roleId +
                ", roleName='" + roleName + '\'' +
                ", currentOccu='" + currentOccu + '\'' +
                ", avatar='" + avatar + '\'' +
                ", vipLevel=" + vipLevel +
                ", occuDetail='" + occuDetail + '\'' +
                ", occuTimes=" + occuTimes +
                ", resistance='" + resistance + '\'' +
                ", isVisible=" + isVisible +
                ", userId=" + userId +
                ", isDeleted=" + isDeleted +
                '}';
    }
}
